import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

const app = createApp(App);

//1.全局引入使用elementui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入全局样式
import "@/assets/css/base.css"
//2.引入icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

app.use(ElementPlus,{ size: 'large', zIndex: 3000 });
app.use(store);
app.use(router);

//icon图标配置
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }


  //2.注册全局组件
import common from "@/common"
for(let attr in common){
  app.component(attr,common[attr])
}

app.mount('#app')
